
<{if $aCart.object.goods}>
<{foreach from=$aCart.object.goods item=goods key=_obj_key}>

 <tbody class="cart-item">
    <!-- 主商品 -->
    <tr class="cart-product<{if !$goods.adjunct}> last<{/if}>">
      <td>
        <input type="hidden" name="obj_type" value="goods">
        <input type="hidden" name="goods_ident" value="<{$goods.obj_ident}>">
        <input type="hidden" name="goods_id" value="<{$goods.obj_items.products.0.goods_id}>">
        <input type="hidden" name="min" value="1"/>
        <input type="hidden" name="max" value="<{$goods.store.real}>"/>
        <input type="hidden" name="stock" value="<{$goods.store.store}>"/>
        <input type="hidden" name="sell_num" value="<{$goods.fixed.nums}>"/>
        <input type="hidden" name="min" value="1"/>
        <input type="hidden" name="sell_price" value="<{$goods.fixed.total_amount|cur_odr}>"/>
        <input type="hidden" name="ori_price" value="<{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity|cur_odr}>
"/>
        <!-- add by hyz 2017.11.15 16:53 -->
        <input type="hidden" name="status" value="<{$goods.obj_items.products.0.price.status}>"/>
        <input type="hidden" name="total_amount" value="<{$goods.fixed.total_amount}>"/>
        <input type="hidden" name="fixed_nums" value="<{$goods.fixed.nums}>"/>
        <input type="hidden" name="quantity" value="<{$goods.quantity}>"/>
        <input type="hidden" name="member_lv_price" value="<{$goods.obj_items.products.0.price.member_lv_price}>"/>
        <input type="hidden" name="mlv_price" value="<{$goods.obj_items.products.0.price.mlv_price}>"/>
        <input type="hidden" name="discount_amount_prefilter" value="<{$goods.discount_amount_prefilter}>"/>
        <input type="hidden" name="dis_price" value="<{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity}>"/>
        <!-- end -->

        <!-- @zeng 2017.5.4 用户发货提示的商品product_id -->
        <input type="hidden" id="myproductid" class='myproductid' name="myproductid" value="<{$goods.obj_items.products.0.product_id}>" />
        <!-- end -->
        <div class="p-pic">
          <a href="<{link app=b2c ctl=site_product act=index arg0=$goods.obj_items.products.0.product_id}>" target="_blank"><img src="<{$goods.obj_items.products.0.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$goods.obj_items.products.0.name}>"></a>
      </td>
      <td class="p-info">
        <div class="p-title"><a target="_blank" href="<{link app=b2c ctl=site_product arg0=$goods.obj_items.products.0.product_id}>"><{$goods.obj_items.products.0.name}></a></div>
        <div class="p-spec<{if !$goods.obj_items.products.0.spec_info}> fix-empty<{/if}>"><{$goods.obj_items.products.0.spec_info|spec_desc}></div>
        <!-- 赠品 -->
		<{if $goods.special_type}>
        <div class="p-gift">
			<span class="tag"><b>[<{$goods.special_type}>]</b></span>
		</div>
		<{/if}>
        <{foreach from=$goods.gift item=gift key=_gift_key}>
        <div class="p-gift">
          <b>[赠品]</b><a target="_blank" href="<{link app=gift ctl=site_gift arg0=$gift.product_id}>"><{$gift.name}><{$gift.spec_info|spec_desc}></a> <{if $check_login == "login"}><i><{$gift.price.price|cur_odr}> x <{$gift.quantity}></i><{/if}>
        </div>
        <{/foreach}>
        <!-- 商品促销 -->
        <div class="p-promotion">
          <ul>
            <{foreach from=$aCart.promotion.goods.[$goods.obj_ident] item=goods_promotion}>
            <{if $goods_promotion.cart_display}>
            <li>
              <b>[<{$goods_promotion.desc_tag}>]</b><{$goods_promotion.name}>
            </li>
            <{/if}>
            <{/foreach}>
          </ul>
        </div>
      </td>
       <td> </td>
       <!-- add这里是验证--未登录不显示价格-黄智坤06-20   -->
<{if $check_login == "login"}>
<!-- end这里是验证--未登录不显示价格-黄智坤06-20 -->
<!-- 商品状态 -->
      <td class="cuxiao">
        <{if !$goods.params.tag_name}>
           <em class="label-alert">正常</em>
        <{else}>
          <{foreach from=$goods.params.tag_name item=xxx}>
            <em class="label-alert"><{$xxx.tag_name}></em></br>
          <{/foreach}>
        <{/if}>
      </td>
<!-- 销售价 -->
      <td class="p-price">
        <!--@by hyz 2017.11.15-->
        
          <{if $goods.obj_items.products.0.price.status == 1&&$goods.fixed.total_amount}>
            <!-- 有优惠 并且存在促销固定价格-->

            <!-- 如果存在限定促销的商品数量，限量促销 -->
            <{if $goods.fixed.nums}>
              <!-- 如果购买商品数量大于或者等于商品促销数量 -->
              <{if $goods.quantity>$goods.fixed.nums}>
                <!-- 如果存在渠道商等级价格 -->
                <{if $goods.obj_items.products.0.price.member_lv_price}>

                  <{$goods.obj_items.products.0.price.member_lv_price|cur_odr}>

                <{else}>
                  <{$goods.obj_items.products.0.price.mlv_price|cur_odr}>
                <{/if}>

              <{else}>
                <{$goods.fixed.total_amount|cur_odr}>
              <{/if}>

            <{else}>
              <!-- 如果不存在限定促销的商品数量，不限量促销 -->
              <!-- <{$goods.fixed.total_amount|cur_odr}>w -->

              <{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity|cur_odr}>

            <{/if}>

              

          <{else}>

             <!-- 有促销活动小计费除以购物车数量等于供货价 -->
              <{(($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)))/$goods.quantity|cur_odr}>

              <!-- 如果存在渠道商等级价格 -->
<!--                 <{if $goods.obj_items.products.0.price.member_lv_price}>

                  <{$goods.obj_items.products.0.price.member_lv_price|cur_odr}>p

                <{else}>
                  <{$goods.obj_items.products.0.price.mlv_price|cur_odr}>o
                <{/if}> -->

                <!-- <{$goods.obj_items.products.0.price.price|cur_odr}>j -->

          <{/if}>

      <!--end-->
<!-- 要货规格 -->
      </td>
      <td class="p-price">
      <{$goods.params.good_standard}>
      </td>
      	<!-- add这里是验证--未登录不显示价格-黄智坤06-20   -->
	<{else}>
	<td>-</td>
  <td>-</td>
  <td>-</td>
	<{/if}>
 	<!-- end这里是验证--未登录不显示价格-黄智坤06-20 -->	
      <td>
        <div class="p-quantity">
          <a  href="javascript:void(0);" class="btn-decrease">-</a>
          <!-- edit by hzk -->
          <!-- edit by mo -->
          <!-- edit by zqh insert id-->
<!--           <input id='myval' type="text" name="modify_quantity[<{$goods.obj_ident}>][quantity]" value="<{if $goods.fullofgift.maxbuytype=="fullofgift" && $goods.fullofgift.maxbuygift < $goods.quantity}><{$goods.fullofgift.maxbuygift}><{else}><{$goods.quantity}><{/if}>"  min="<{if $goods.fullofgift.maxbuytype=="fullofgift" && $goods.fullofgift.maxbuygift <$goods.params.peradd}><{$goods.fullofgift.maxbuygift}><{else}><{if $add.isused==1}><{$add.pernum}><{else}><{$goods.params.peradd}><{/if}><{/if}>" max="<{if $goods.fullofgift.maxbuytype=="fullofgift"}><{$goods.fullofgift.maxbuygift}><{else}>9999<{/if}>" > -->
          <input id='myval' type="text" name="modify_quantity[<{$goods.obj_ident}>][quantity]" value="<{$goods.quantity}>"  min="<{if $add.isused==1}><{$add.pernum}><{else}><{$goods.params.peradd}><{/if}>" max="{store}" >
          <a href="javascript:void(0);" class="btn-increase">+</a>
          <!-- min="<{if $add.isused==1}><{$add.pernum}><{else}><{$goods.params.peradd}><{/if}>" -->
          <input type="hidden" class="action-quantity-input-getPeradd"  value="<{$goods.params.peradd}>">
          <input type="hidden"  class="action-quantity-input-havegift"  value="<{if $goods.fullofgift.maxbuytype=='fullofgift' }>havegift<{else}>null<{/if}>">
		  <input type="hidden"  class="action-quantity-input-getmaxbuy"  value="<{if $goods.fullofgift.maxbuytype=='fullofgift' }><{$goods.fullofgift.maxbuygift|number}><{else}><{$goods.quantity|number}><{/if}>">
		        
        </div>
        <{if $goods.store.store == 0}><span class="warn-message"><{t}>库存不足<{/t}></span>
        <{elseif $goods.store.store <= 5}><span class="warn-message"><{t}>余量有限<{/t}></span><{/if}>
      </td><!-- <td>-</td> -->
      <td>
       <!--@by zeng 2017.4.18-->
       <!-- 优惠金额 -->
       <{if $goods.obj_items.products.0.price.status == 1}>
        
        <!-- <{$goods.discount_amount_prefilter|cur_odr}> -->
  
        <!-- 订货价 -->
        <!-- <{$goods.obj_items.products.0.price.mlv_price}>b -->
        
        <!-- 等级价格 -->
        <!-- <{$goods.obj_items.products.0.price.member_lv_price}>c -->
        
        <!-- 数量 -->
        <!-- <{$goods.quantity}>d -->
        
        <!-- 有优惠 -->
       <!--  <{($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity)|cur_odr}> -->
       <{$goods.discount_amount_prefilter+$goods.discount_amount_order|cur_odr}>
       <{else}>
        <!-- 没有优惠 -->
          0
        <{/if}>
      <!--end-->
      </td>
      <{if $check_login == "login"}>
      <td class="p-integral">
          <{if ($goods.obj_items.products.0.gain_score * $goods.quantity)}>
          <{$goods.obj_items.products.0.gain_score * $goods.quantity}>
          <{else}>
              -
          <{/if}>
      </td>
             <!-- add这里是验证--未登录不显示价格-黄智坤06-20   -->

<!-- end这里是验证--未登录不显示价格-黄智坤06-20 -->
      <td class="p-subtotal">
        <!--@by hyz 2017.11.15 20:08 -->

       <{if $goods.obj_items.products.0.price.status == 1}>
          <!-- 有优惠 并且存在促销固定价格-->
          <!-- 如果存在渠道等级价格 -->
          <!-- <{if $goods.obj_items.products.0.price.member_lv_price}>
            <{($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity))|cur_odr}>
          <{else}> -->
            <!-- 如果不存在渠道等级价格 -->
            <!-- <{($goods.obj_items.products.0.price.member_lv_price*$goods.quantity)-$goods.discount_amount_prefilter|cur_odr}>
          <{/if}> -->
          
          <!-- 价格打折方式 -->
          <{if $goods.fixed.total_amount}>

            <!-- 如果存在限定促销的商品数量，限量促销 -->
            <{if $goods.fixed.nums}>
              <!-- 如果购买商品数量大于或者等于商品促销数量 -->
              <{if $goods.quantity>$goods.fixed.nums}>
                <!-- 如果存在渠道商等级价格 -->
                <{if $goods.obj_items.products.0.price.member_lv_price}>

                  <{($goods.fixed.total_amount*$goods.fixed.nums)+($goods.quantity-$goods.fixed.nums)*$goods.obj_items.products.0.price.member_lv_price|cur_odr}>

                <{else}>
                  <!-- 如果不存在渠道等级价格 -->
                  <{($goods.fixed.total_amount*$goods.fixed.nums)+($goods.quantity-$goods.fixed.nums)*$goods.obj_items.products.0.price.mlv_price|cur_odr}>

                <{/if}>

              <{else}>
                <!-- 如果购买商品数量小于商品促销数量 -->
                <{$goods.fixed.total_amount*$goods.quantity|cur_odr}>

              <{/if}>

            <{else}>

              <!-- 如果不存在限定促销的商品数量，不限量促销 -->
              <!-- <{$goods.fixed.total_amount*$goods.quantity|cur_odr}>d -->

              <!-- 如果存在渠道等级价格 -->
              <{if $goods.obj_items.products.0.price.member_lv_price}>
                <{($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity))|cur_odr}>
              <{else}>
              <!-- 如果不存在渠道等级价格 -->
                <{($goods.obj_items.products.0.price.member_lv_price*$goods.quantity)-$goods.discount_amount_prefilter|cur_odr}>
              <{/if}>

            <{/if}>

          <{else}>
            <!-- 折扣打折方式 -->

            <!-- 如果存在渠道等级价格 -->
            <{if $goods.obj_items.products.0.price.member_lv_price}>
              <{($goods.obj_items.products.0.price.mlv_price*$goods.quantity)-(($goods.discount_amount_prefilter)+(($goods.obj_items.products.0.price.mlv_price-$goods.obj_items.products.0.price.member_lv_price)*$goods.quantity))|cur_odr}>
            <{else}>
            <!-- 如果不存在渠道等级价格 -->
              <{($goods.obj_items.products.0.price.member_lv_price*$goods.quantity)-$goods.discount_amount_prefilter|cur_odr}>
            <{/if}>

          <{/if}>

       <{else}>
          <!-- 没有优惠 -->
          <!-- 如果存在渠道商等级价格 -->
          <{if $goods.obj_items.products.0.price.member_lv_price}>
            <{$goods.obj_items.products.0.price.member_lv_price*$goods.quantity|cur_odr}>
          <{else}>
            <{$goods.obj_items.products.0.price.mlv_price*$goods.quantity|cur_odr}>
          <{/if}>

        <{/if}>
        <!--end-->
      </td>
       <!--@zeng 2017.4.24-->
       	<!-- add这里是验证--未登录不显示价格-黄智坤06-20   -->
	<{else}>
	<td>0</td>
  <td>-</td>
	<{/if}>
 	<!-- end这里是验证--未登录不显示价格-黄智坤06-20 -->	
      <td id="g-tips<{$goods.obj_items.products.0.product_id}>" class="g-tips<{$goods.obj_items.products.0.product_id}>"><!-- <{$goods.obj_items.products.0.price.goods_tips}> --> <{$goods.obj_items.products.0.titletest}> </td>
      <!--end-->
      <td class="p-action">
        <{if $login=='nologin'}>
        <a  href="<{link app=b2c ctl=site_passport act=login}>" class="btn-fav">收藏</a>
        <{else}>
        <a href="javascript:void(0);" class="btn-fav" rel="_addfav_" data-gid="<{$goods.obj_items.products.0.goods_id}>">收藏</a>
        <{/if}>
        <i>|</i>
        <a href="javascript:void(0);" class="btn-delete">移除</a>
      </td>
    </tr>
    <!-- 配件 -->
    <{foreach from=$goods.adjunct item=adjunct key=key name=adjunct}>
    <tr class="p-adjunct<{if $smarty.foreach.adjunct.last}> last<{/if}>">
      <td>
        <input type="hidden" name="obj_type" value="goods">
        <input type="hidden" name="adjunct_ident" value="<{$adjunct.obj_ident}>"> 
        <input type="hidden" name="min" value="<{$adjunct.store.min_buy_store}>"/>
        <input type="hidden" name="max" value="<{$adjunct.store.real}>"/>
        <input type="hidden" name="stock" value="<{$adjunct.store.store}>"/>
        <div class="p-adjunct-icon"><{t}>配件<{/t}><br><{t}>商品<{/t}></div>
      </td>
      <td class="p-info" colspan="2">
        <div class="p-pic">
            <a target="_blank" href="<{link app=b2c ctl=site_product arg0=$adjunct.product_id}>"><img src="<{$adjunct.default_image.thumbnail|default:$env.conf.site.default_thumbnail_pic|storager:'s'}>" alt="<{$adjunct.name}>,<{$adjunct.spec_info}>"></a>
        </div>
        <div class="p-title"><a target="_blank" href="<{link app=b2c ctl=site_product arg0=$adjunct.product_id}>"><{$adjunct.name}>,<{$adjunct.spec_info|spec_desc}></a></div>
      </td>
<!-- add这里是验证--未登录不显示价格-黄智坤06-20   -->
<{if $check_login == "login"}>
<!-- end这里是验证--未登录不显示价格-黄智坤06-20 -->
      <td class="p-price" ><{$adjunct.json_price.price|cur_odr}></td>
       	<!-- add这里是验证--未登录不显示价格-黄智坤06-20   -->
	<{else}>
	<td>-</td>
	<{/if}>
 	<!-- end这里是验证--未登录不显示价格-黄智坤06-20 -->	      
      <td>
      
      <!-- edit by hzk -->
      <!-- edit by mo -->
       <div class="p-quantity">
          <a  href="javascript:void(0);" class="btn-decrease">-</a>
          <!-- edit by hzk -->
          <!-- edit by mo -->
          <!-- edit by zqh insert id-->
         <input type="text" name="modify_quantity[<{$goods.obj_ident}>][adjunct][<{$adjunct.group_id}>][<{$adjunct.product_id}>][quantity]" id="myval" min="1" max="<{$adjunct.store.real}>" value="<{if $adjunct.store.store == 0}>0<{else}><{$adjunct.quantity}><{/if}>">
          <a href="javascript:void(0);" class="btn-increase">+</a>
          <!-- min="<{if $add.isused==1}><{$add.pernum}><{else}><{$goods.params.peradd}><{/if}>" -->
          <input type="hidden" class="action-quantity-input-getPeradd"  value="<{$goods.params.peradd}>">
           <input type="hidden"  class="action-quantity-input-havegift"  value=" null">
		  <input type="hidden"  class="action-quantity-input-getmaxbuy"  value="<{if $goods.fullofgift.maxbuytype=='fullofgift' }><{$goods.fullofgift.maxbuygift|number}><{else}><{$goods.quantity|number}><{/if}>">
		   
        </div>
        <{if $adjunct.store.store == 0}>
          <span class="warn-message"><{t}>库存不足<{/t}></span>
        <{elseif $adjunct.store.store <= 5}>
          <span class="warn-message"><{t}>余量有限<{/t}></span>
        <{/if}>
      </td>
      <!-- add这里是验证--未登录不显示价格-黄智坤06-20   -->
<{if $check_login == "login"}>
<!-- end这里是验证--未登录不显示价格-黄智坤06-20 -->
      <td class="p-discount"><{($adjunct.json_price.price-$adjunct.price.buy_price)*$adjunct.quantity|cur_odr}></td>
      <td class="p-integral">
          <{if ($adjunct.gain_score * $adjunct.quantity)}>
              <{($adjunct.gain_score * $adjunct.quantity)}>
          <{else}>
              -
          <{/if}>
      </td>
      <td class="p-subtotal"><{$adjunct.subtotal|cur_odr}></td>
       	<!-- add这里是验证--未登录不显示价格-黄智坤06-20   -->
	<{else}>
	<td>-</td>
	<td>-</td>
	<td>-</td>
	<{/if}>
 	<!-- end这里是验证--未登录不显示价格-黄智坤06-20 -->	  
   <td id="" class=""><!-- <{$goods.obj_items.products.0.price.goods_tips}> --> -  </td>
      <td class="p-action">
        <{if $login=='nologin'}>
        <a href="<{link app=b2c ctl=site_passport act=login}>" class="btn-fav">收藏</a>
        <{else}>
        <a href="javascript:void(0);" class="btn-fav" rel="_addfav_" data-gid="<{$adjunct.goods_id}>">收藏</a>
        <{/if}>
        <i>|</i>
        <a href="javascript:void(0);" class="btn-delete">移除</a>
      </td>
    </tr>
    <{/foreach}>
  </tbody>
  <{/foreach}>
<{/if}>

